<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Classes extends Model
{
    protected $table='parentsonclass';

    /**
     * 子分类
     * @return \Illuminate\Database\Eloquent\Relations\HasMany
     */
    public function childClass(){
        return $this->hasMany('App\Models\ChildClass','pa_parent','id');
    }
}
